//
// Created by liaojili on 2023/11/9.
//
#include <stdio.h>

#define ARRAY_SIZE 5

void main() {

    int arr[ARRAY_SIZE] = {1, 3, 5, 6, 8};
    int temp = 0;
    int left;
    int right;
    for (left = 0, right = ARRAY_SIZE - 1; left < right ; left ++, right --) {
        temp = arr[left];
        arr[left] = arr[right];
        arr[right] = temp;

    }
    for (int i = 0; i < ARRAY_SIZE; ++i) {
        printf("%d\n", arr[i]);
    }
}